package com.youzan.cloud.component.biz.member.dal.dataobject;

import java.util.Date;

public class MemberRelationship {
	/** 主键 */
	private Long id;
	/** 有赞openId */
	private String yzOpenid;
	/** 手机号 */
	private String mobile;
	/** 三方系统会员主键 */
	private String thirdAccount;
	/** 三方系统会员账号 */
	private String thirdAccountType;
	/** 创建时间 */
	private Date createTime;
	/** 店铺ID */
	private Long kdtid;

	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getId() {
		return this.id;
	}
	
	public void setYzOpenid(String yzOpenid) {
		this.yzOpenid = yzOpenid;
	}
	
	public String getYzOpenid() {
		return this.yzOpenid;
	}
	
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	public String getMobile() {
		return this.mobile;
	}
	
	public void setThirdAccount(String thirdAccount) {
		this.thirdAccount = thirdAccount;
	}
	
	public String getThirdAccount() {
		return this.thirdAccount;
	}

	public String getThirdAccountType() {
		return thirdAccountType;
	}

	public void setThirdAccountType(String thirdAccountType) {
		this.thirdAccountType = thirdAccountType;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	
	public void setKdtid(Long kdtid) {
		this.kdtid = kdtid;
	}
	
	public Long getKdtid() {
		return this.kdtid;
	}
	

	@Override
    public boolean equals(Object o) {
        if (this == o) { return true; }
        if (o == null || getClass() != o.getClass()) {return false;}
        MemberRelationship that = (MemberRelationship) o;
        return id.equals(that.id);
    }

    @Override
    public int hashCode() {
        return java.util.Objects.hash(id);
    }
    
    @Override
    public String toString() {
        return "MemberRelationship{" +
				"id=" + id +
						",yzOpenid='" + yzOpenid + "'" + 
						",mobile='" + mobile + "'" + 
						",thirdAccount='" + thirdAccount + "'" + 
						",thirdAccountType='" + thirdAccountType + "'" +
						",createTime='" + createTime + "'" + 
						",kdtid='" + kdtid + "'" + 
		                '}';
    }
	
}